package com.example.demo.mqserver.core;

import java.io.Serializable;

public class BasicProperties implements Serializable {
    // 消息的唯⼀ id. 使⽤ uuid 表⽰.
    private String messageId;
    private String routingKey;
    // 1 表⽰消息⾮持久化. 2 表⽰消息持久化
    private int deliveryMode = 1;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDeliveryMode() {
        return deliveryMode;
    }

    public void setDeliveryMode(int deliveryMode) {
        this.deliveryMode = deliveryMode;
    }
}